Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up deprecated .copyDst/.renderable/.renderTarget* from kTextureFormatInfo #3412

Merged
merged 8 commits into from
Mar 11, 2024

Conversation

kainino0x
Copy link
Collaborator

@kainino0x kainino0x commented Feb 16, 2024

Plus the trivial cases of the deprecated .bytesPerBlock.

Part 6 of Issue: #2495


Requirements for PR author:

  • All missing test coverage is tracked with "TODO" or .unimplemented().
  • New helpers are /** documented */ and new helper files are found in helper_index.txt.
  • Test behaves as expected in a WebGPU implementation. (If not passing, explain above.)
  • Test have be tested with compatibility mode validation enabled and behave as expected. (If not passing, explain above.)

Requirements for reviewer sign-off:

  • [N/A] Tests are properly located in the test tree.
  • [N/A] Test descriptions allow a reader to "read only the test plans and evaluate coverage completeness", and accurately reflect the test code.
  • Tests provide complete coverage (including validation control cases). Missing coverage MUST be covered by TODOs.
  • Helpers and types promote readability and maintainability.

When landing this PR, be sure to make any necessary issue status updates.

@kainino0x kainino0x force-pushed the textureinfo2part6 branch 5 times, most recently from 1913edc to 52692b1 Compare March 8, 2024 05:58
.renderTargetComponentAlignment = .colorRender.alignment
.renderTargetPixelByteCost = .colorRender.byteCost

The one exception to this is rg11b10ufloat, which is not renderable in
core, but has an extension for renderability. kTextureFormatInfo
currently only expresses core capabilities. The alignment and byteCost
for this format will need to be added back when the refactor is done to
make a table for "static" properties of texture formats (which never
vary based on capabilities) - shape of that refactor is TBD.
@kainino0x kainino0x force-pushed the textureinfo2part6 branch from 52692b1 to fb77f4b Compare March 8, 2024 06:08
@kainino0x kainino0x requested a review from lokokung March 8, 2024 06:10
@kainino0x kainino0x marked this pull request as ready for review March 8, 2024 06:10
@kainino0x kainino0x requested review from lokokung and removed request for lokokung March 8, 2024 06:10
@kainino0x
Copy link
Collaborator Author

PTAL

@kainino0x kainino0x enabled auto-merge (squash) March 11, 2024 18:36
@kainino0x kainino0x merged commit 4f913dc into gpuweb:main Mar 11, 2024
1 check passed
@kainino0x kainino0x deleted the textureinfo2part6 branch March 11, 2024 18:43
ben-clayton pushed a commit to ben-clayton/cts that referenced this pull request Mar 18, 2024
…FormatInfo (gpuweb#3412)

* Refactor deprecated .copyDst/.renderable in texture_zero_init_test.ts

* Remove no-op use of .renderable in texture_zero_init_test.ts

* Refactor deprecated .renderable in createTexture.spec.ts

* Remove deprecated .copyDst

* Remove deprecated .renderable

* Remove unused .renderTarget{ComponentAlignment,PixelByteCost}

.renderTargetComponentAlignment = .colorRender.alignment
.renderTargetPixelByteCost = .colorRender.byteCost

The one exception to this is rg11b10ufloat, which is not renderable in
core, but has an extension for renderability. kTextureFormatInfo
currently only expresses core capabilities. The alignment and byteCost
for this format will need to be added back when the refactor is done to
make a table for "static" properties of texture formats (which never
vary based on capabilities) - shape of that refactor is TBD.

* Refactor trivial uses of deprecated .bytesPerBlock
kainino0x added a commit to kainino0x/cts that referenced this pull request Mar 18, 2024
Broken in gpuweb#3412. Prior to this, some checks were being skipped (that
we didn't want to skip, but were skipped because of the limitations of
the format info table).
@kainino0x kainino0x mentioned this pull request Mar 18, 2024
8 tasks
kainino0x added a commit that referenced this pull request Mar 18, 2024
Broken in #3412. Prior to this, some copies were being skipped for some formats because bytesPerBlock was undefined for those copies.
This doesn't change the coverage of the test though, as the actual check that used those copies is still skipped.

I missed the regressions before because they were a bit buried in existing failures on my machine.
ben-clayton pushed a commit to ben-clayton/cts that referenced this pull request Mar 18, 2024
Broken in gpuweb#3412. Prior to this, some copies were being skipped for some formats because bytesPerBlock was undefined for those copies.
This doesn't change the coverage of the test though, as the actual check that used those copies is still skipped.

I missed the regressions before because they were a bit buried in existing failures on my machine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants